Skip to content

Improve sticky position - #2477

Merged
tf merged 2 commits into
codevise:masterfrom
tf:split-sticky
Aug 28, 2026
Merged

Improve sticky position#2477
tf merged 2 commits into
codevise:masterfrom
tf:split-sticky

Conversation

@tf

@tf tf commented Aug 28, 2026

Copy link
Copy Markdown
Member
  • Center vertically in viewport
  • Fix in split sections

tf added 2 commits August 28, 2026 15:11
Sticky content elements did not stay pinned in sections with split
appearance. The rule that centers side boxes inside their column
relied on relative positioning, which took precedence over the
sticky position.

Let boxes derive their margins from custom properties, following how
they already derive their max width, so that shifting a box and
undoing the group padding no longer compete for the same property.
Sticky content elements were pinned a third down the viewport no
matter how tall they were, cutting off the lower part of tall
elements and of anything sticking in a short viewport. Two sticky
elements sharing a box could end up not fitting at all while the
space above them stayed empty.

The offset now shrinks towards centering the box as it grows and
reaches the top edge once the box is taller than the viewport.
@tf tf added this to the v17.2 milestone Aug 28, 2026
@tf
tf merged commit e9e3c40 into codevise:master Aug 28, 2026
18 checks passed
@tf
tf deleted the split-sticky branch August 28, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant